home *** CD-ROM | disk | FTP | other *** search
- 'Program to get the id and name of each layer in the drawing
- Sub Main()
- Dim dActive As Long
- Dim hDrawing As Long
- Dim count As Long
- Dim i As Long
- Dim LayerID As Long
- Dim LayVar As String
- Dim Result As Variant
-
- hDrawing = TCWDrawingOpen("c:\imsi\tcw40\Samples\mouse.tcw")
-
- count = TCWLayersCount()
- i = 1
- LayVar = "Name"
- Do While (i <> count)
- LayerID = TCWLayersAt(i)
- Msgbox LayerID
- Result = TCWLayerPropertyGet(LayerID, LayVar)
- MsgBox Result
- i = i + 1
- Loop
- MsgBox "Finished"
-
- End Sub
-
-
-
-
-
-